


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="htmlId">
<head>
  <title>Coverage Report :: CoffeeMakerTest</title>
  <style type="text/css">
    @import "../../.css/coverage.css";
  </style>
</head>

<body>
<div class="header"></div>

<div class="content">
<div class="breadCrumbs">
    [ <a href="../../index.html">all classes</a> ]
    [ <a href="../index.html">edu.ncsu.csc326.coffeemaker</a> ]
</div>

<h1>Coverage Summary for Class: CoffeeMakerTest (edu.ncsu.csc326.coffeemaker)</h1>

<table class="coverageStats">
<tr>
  <th class="name">Class</th>
<th class="coverageStat 
">
  Class, %
</th>
<th class="coverageStat 
">
  Method, %
</th>
<th class="coverageStat 
">
  Line, %
</th>
</tr>
<tr>
  <td class="name">CoffeeMakerTest</td>
<td class="coverageStat">
  <span class="percent">
    100%
  </span>
  <span class="absValue">
    (1/ 1)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    100%
  </span>
  <span class="absValue">
    (3/ 3)
  </span>
</td>
<td class="coverageStat">
  <span class="percent">
    100%
  </span>
  <span class="absValue">
    (13/ 13)
  </span>
</td>
</tr>

</table>

<br/>
<br/>


<div class="sourceCode"><i>1</i>&nbsp;package edu.ncsu.csc326.coffeemaker;
<i>2</i>&nbsp;
<i>3</i>&nbsp;import junit.framework.TestCase;
<i>4</i>&nbsp;
<i>5</i>&nbsp;/**
<i>6</i>&nbsp; * @author Sarah E. Smith
<i>7</i>&nbsp; */
<b class="fc"><i>8</i>&nbsp;public class CoffeeMakerTest extends TestCase {</b>
<i>9</i>&nbsp;	private CoffeeMaker cm;
<i>10</i>&nbsp;	private Inventory i;
<i>11</i>&nbsp;	private Recipe r1;
<i>12</i>&nbsp;	
<i>13</i>&nbsp;	public void setUp() {
<b class="fc"><i>14</i>&nbsp;		cm = new CoffeeMaker();</b>
<b class="fc"><i>15</i>&nbsp;		i = cm.checkInventory();</b>
<i>16</i>&nbsp;		
<b class="fc"><i>17</i>&nbsp;		r1 = new Recipe();</b>
<b class="fc"><i>18</i>&nbsp;		r1.setName(&quot;Coffee&quot;);</b>
<b class="fc"><i>19</i>&nbsp;		r1.setPrice(50);</b>
<b class="fc"><i>20</i>&nbsp;		r1.setAmtCoffee(6);</b>
<b class="fc"><i>21</i>&nbsp;		r1.setAmtMilk(1);</b>
<b class="fc"><i>22</i>&nbsp;		r1.setAmtSugar(1);</b>
<b class="fc"><i>23</i>&nbsp;		r1.setAmtChocolate(0);</b>
<b class="fc"><i>24</i>&nbsp;	}</b>
<i>25</i>&nbsp;	
<i>26</i>&nbsp;	public void testAddRecipe() {
<b class="fc"><i>27</i>&nbsp;		assertTrue(cm.addRecipe(r1));</b>
<b class="fc"><i>28</i>&nbsp;	}</b>
<i>29</i>&nbsp;
<i>30</i>&nbsp;}
</div>
</div>

<div class="footer">
    
    <div style="float:right;">generated on 2014-04-26 20:19</div>
</div>
</body>
</html>
